<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="admin/include :: header('新增商品')" />
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-menu-add">
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">商品名称：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="name" id="name" required>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label is-required">商品链接：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="url" id="url" required>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label is-required">成本价：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="costPrice" id="costPrice" required="required|number">
				</div>
			</div>
		</form>
	</div>
	<th:block th:include="admin/include :: footer" />
	 <script>
        var prefix = ctx + "admin/steam/balance";
        function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-menu-add').serialize());
	        }
	    }
    </script>
</body>
</html>
